package com.furcas.javaee6.rainbow;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity(name = "username")
@NamedQuery(name = "findAllUsers", query = "SELECT b FROM username b")
public class User {

	@Id
	private String userId;
	@Column(nullable = false)
	private String email;
	private String userRole;
	@Column(nullable = false)
	private String name;
	private String reportRole;
	private String password;
	private String userType;
	private String telephone;
	private String receivesAlerts;
	@Temporal(TemporalType.TIMESTAMP)
	private Date lastLogin;
	private String flags;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUserRole() {
		return userRole;
	}

	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getReportRole() {
		return reportRole;
	}

	public void setReportRole(String reportRole) {
		this.reportRole = reportRole;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getReceivesAlerts() {
		return receivesAlerts;
	}

	public void setReceivesAlerts(String receivesAlerts) {
		this.receivesAlerts = receivesAlerts;
	}

	public Date getLastLogin() {
		return lastLogin;
	}

	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}

	public String getFlags() {
		return flags;
	}

	public void setFlags(String flags) {
		this.flags = flags;
	}

}